//
//  ChargeListModel.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/8/19.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "ChargeListModel.h"

@implementation ChargeListModel

- (instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        self.amount = dict[@"amount"];
        self.tradeDirection = [dict[@"tradeDirection"] integerValue];
        self.createDate = dict[@"createDate"];
        self.explain = dict[@"explain"];
        self.content = dict[@"content"];
        self.date = dict[@"date"];
        self.updateDate = dict[@"updateDate"];
        self.productName = dict[@"productName"];
        self.productType = dict[@"productType"];
        self.tradeChannel = dict[@"tradeChannel"];
        
        self.mobilePhone = dict[@"mobilePhone"];
        self.tradeType = dict[@"tradeType"];
        self.actualAmount = [dict[@"actualAmount"] floatValue];
        self.amout = [dict[@"amout"] floatValue];
        self.chequesAccount = dict[@"chequesAccount"];
        self.free = [dict[@"free"] floatValue];
        self.status = [dict[@"status"] integerValue];
        self.type = [dict[@"type"] integerValue];
        self.rejectReason = dict[@"rejectReason"];
        
        self.incomeRate = dict[@"incomeRate"];
        self.orderNo = dict[@"orderNo"];
    }
    return self;
}

+ (instancetype)objectWithDict:(NSDictionary *)dict
{
    return [[ChargeListModel alloc]initWithDict:dict];
}


@end
